﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using QldtSdh.BLL;

namespace UnitTestQLDTSDH
{
    [TestClass]
    public class UnitTestBLL
    {
        [TestMethod]
        public void TestMethodTaoMaGiangVien()
        {
            var actual = BizGiangVien.GenerateIDGiangVien("KH", "CNTT", 1);
            string expected = "KH.CNTT.001";
            Assert.AreEqual(expected, actual);
        }
        [TestMethod]
        public void TestMethodTaoMaHocVien()
        {
            var actual = BizHocVien.GenerateIDHocVien(2014, "KHMT", 1);
            string expected = "14.KHMT.001";
            Assert.AreEqual(expected, actual);
        }
    }
}
